package com.crc64.comm.serialcomm;

import gnu.io.SerialPort;

/**
 * Seri bağlantıda kullanılacak olan Parity değeri.
 * 
 * @author Bora SAYINER
 * @since 07.10.2014
 * @version 1.0.0
 */
public enum Parity {

	// @formatter:off
	PARITY_EVEN(SerialPort.PARITY_EVEN),
	PARITY_MARK(SerialPort.PARITY_MARK),
	PARITY_NONE(SerialPort.PARITY_NONE),
	PARITY_ODD(SerialPort.PARITY_ODD),
	PARITY_SPACE(SerialPort.PARITY_SPACE);
	// @formatter:on

	private final int parity;

	private Parity(final int parity) {
		this.parity = parity;
	}

	public int getParity() {
		return parity;
	}
}
